console.log("====================")
$("#edityinshengType").change(function (){
    var reslist=$("#edityinshengType").select2("data");
    $("#edityinshengTypes").val(payTypes(reslist));
});


$("#yinshengType").change(function(){
    var reslist=$("#yinshengType").select2("data");
    $("#yinshengTypes").val(payTypes(reslist));
});

function edityinsheng(i) {
    $("#edityinshengpartner_id").attr("name", "payCompanyInfos[" + i + "].yinshengVo.partner_id");
    $("#edityinshengseller_id").attr("name", "payCompanyInfos[" + i + "].yinshengVo.seller_id");
    $("#edityinshengappid").attr("name", "payCompanyInfos[" + i + "].yinshengVo.appid");


    $("#edityinshengTypes").attr("name", "payCompanyInfos[" + i + "].payType");

    $("#edityinshengPayType").attr("data-placeholder", "请从列表选择一项");
    $("#edityinshengPayType").attr("required", "");


}

function yinsheng(i) {
    $("#yinshengpartner_id").attr("name", "payCompanyInfos[" + i + "].yinshengVo.partner_id");
    $("#yinshengseller_id").attr("name", "payCompanyInfos[" + i + "].yinshengVo.seller_id");
    $("#yinshengappid").attr("name", "payCompanyInfos[" + i + "].yinshengVo.appid");



    $("#yinshengTypes").attr("name", "payCompanyInfos[" + i + "].payType");


    $("#yinshengPayType").attr("data-placeholder", "请从列表选择一项");
    $("#yinshengPayType").attr("required", "");


}